/*******************************************************************************
 * Copyright (c) 2000, 2003 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials 
 * are made available under the terms of the Common Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/cpl-v10.html
 * 
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
package org.aseclipse.core.runtime.registry.classes {

/**
 * An object which can create plug-in related model objects (typically when
 * parsing plug-in manifest files).
 * <p>
 * This class may be instantiated, or further subclassed.
 * </p>
 */

public class Factory {
	/**
	 * Creates a factory which can be used to create plug-in model objects.
	 * Errors and warnings during parsing etc. can be logged to the given 
	 * status via the <code>error</code> method.
	 *
	 * @param status the status to which errors should be logged
	 */
	public function Factory() { // status:MultiStatus
		super();
	}
    
	public function createBundle():BundleModel {
		return new BundleModel();
	}
	/**
	 * Returns a new configuration element model which is not initialized.
	 *
	 * @return a new configuration element model
	 */
	public function createConfigurationElement():ConfigurationElement {
		return new ConfigurationElement();
	}

	/**
	 * Returns a new configuration property model which is not initialized.
	 *
	 * @return a new configuration property model
	 */
	public function createConfigurationProperty():ConfigurationProperty {
		return new ConfigurationProperty();
	}

	/**
	 * Returns a new extension model which is not initialized.
	 *
	 * @return a new extension model
	 */
	public function createExtension():Extension {
		return new Extension();
	}
	
	/**
	 * Returns a new extension point model which is not initialized.
	 *
	 * @return a new extension point model
	 */
	public function createExtensionPoint():ExtensionPoint {
		return new ExtensionPoint();
	}
	
	/**
	 * Returns a new empty extension registry.
	 *
	 * @return a new extension registry
	 */
	public function createRegistry():ExtensionRegistry {
		return new ExtensionRegistry(new ExtensionLinker());
	}

}
}